package cn.edu.ncu.housinghub.dto.request.house;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class PropertyVerificationRequest {
    @NotNull
    private Long userId;

    @NotNull
    @Pattern(
            regexp = "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼]{1}[0-9]{4}[0-9A-Za-z]{7,14}$",
            message = "房产编号格式错误，应为：省份简称(1位)+年份(4位)+编号(7-14位数字或字母)，示例：粤2023A1234567"
    )
    @Size(min = 12, max = 19, message = "房产编号长度必须在12-19个字符之间")
    private String propertyNo;

    @NotNull
    private String propertyPicPath;
    @NotNull
    private String propertyAddr;

    private String refuseReason;

    private Byte verifyStatus=0;
    private Boolean isDelete=false;
}
